#!/bin/sh

set -e

echo "邮件服务器启动成功"

while true
do
    message=`nc -l -p 50000`
    printf "发送邮件: %s\n" "$message"
    sleep 1
done